#include<stdio.h>
int Parity_check(int number_to_check);//函数声明
int main(void)
{
    int number_a, if_parity;
    printf("Please input a number");
    scanf("%d", &number_a);
    if_parity = Parity_check(number_a);
    if(if_parity == 1)
    {
        printf("The number you input is %d, it is a parity", number_a);
    }
    else
    {
        printf("The number you input is %d, it is a even", number_a);
    }
    return 0;
}
int Parity_check(int number_to_check)
{
    int ret_val;
    if(number_to_check % 2 == 1)    /*如果是奇数*/
    {
        ret_val = 1;
    }
    else
    {
        ret_val = 0;
    }
    return ret_val;
}
